package org.scorpio.account.pojo.bo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2017-11-21
 */
@TableName("user_detail")
public class UserDetail extends Model<UserDetail> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "user_id", type = IdType.ID_WORKER)
	private Long userId;
	private String username;
	private String realname;
	private String password;
	private BigDecimal gender;
	private BigDecimal status;
	private String email;
	private Long phone;
	private String address;
	@TableField("role_id")
	private Long roleId;
	@TableField("img_url")
	private String imgUrl;
	@TableField("register_time")
	private Date registerTime;
	@TableField("register_ip")
	private Long registerIp;
	@TableField("login_time")
	private Date loginTime;
	@TableField("login_ip")
	private Long loginIp;
	@TableField("dept_id")
	private Integer deptId;
	@TableField("upd_date")
	private Date updDate;
	@TableField("upd_id")
	private Long updId;
	@TableField("crt_date")
	private Date crtDate;
	@TableField("crt_id")
	private Long crtId;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public BigDecimal getGender() {
		return gender;
	}

	public void setGender(BigDecimal gender) {
		this.gender = gender;
	}

	public BigDecimal getStatus() {
		return status;
	}

	public void setStatus(BigDecimal status) {
		this.status = status;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getPhone() {
		return phone;
	}

	public void setPhone(Long phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public Long getRegisterIp() {
		return registerIp;
	}

	public void setRegisterIp(Long registerIp) {
		this.registerIp = registerIp;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Long getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(Long loginIp) {
		this.loginIp = loginIp;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public Date getUpdDate() {
		return updDate;
	}

	public void setUpdDate(Date updDate) {
		this.updDate = updDate;
	}

	public Long getUpdId() {
		return updId;
	}

	public void setUpdId(Long updId) {
		this.updId = updId;
	}

	public Date getCrtDate() {
		return crtDate;
	}

	public void setCrtDate(Date crtDate) {
		this.crtDate = crtDate;
	}

	public Long getCrtId() {
		return crtId;
	}

	public void setCrtId(Long crtId) {
		this.crtId = crtId;
	}

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

	@Override
	public String toString() {
		return "UserDetail{" + ", userId=" + userId + ", username=" + username + ", realname=" + realname
				+ ", password=" + password + ", gender=" + gender + ", status=" + status + ", email=" + email
				+ ", phone=" + phone + ", address=" + address + ", roleId=" + roleId + ", imgUrl=" + imgUrl
				+ ", registerTime=" + registerTime + ", registerIp=" + registerIp + ", loginTime=" + loginTime
				+ ", loginIp=" + loginIp + ", deptId=" + deptId + ", updDate=" + updDate + ", updId=" + updId
				+ ", crtDate=" + crtDate + ", crtId=" + crtId + "}";
	}
}
